#include "CollidableObject.h"
#include "CollisionManager.h"
#include <cassert>

namespace Engine
{
	void CollidableObject::Initialize()
	{
		TheCollisionManager::Instance() ->RegisterCollidableObject(this);
		GameObject::Initialize();
	}

	void CollidableObject::Release()
	{
		TheCollisionManager::Instance() ->UnregisterCollidableObject(GetGameObjectID());
		GameObject::Release();
	}

	CollidableObject::~CollidableObject()
	{
		TheCollisionManager::Instance() ->UnregisterCollidableObject(GetGameObjectID());
	}
}